import request from '@/utils/request';

// 获取我的粉丝和我关注的数量
export const getList = (params, current, size) => {
  return request({
    url: '/api/zdservercore-bbs/bbsusergroupdtl/myFollows',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 获取我的粉丝和我的关注数据列表
export const getDetail = (id) => {
  return request({
    url: '/api/zdservercore-bbs/bbsusergroupdtl/page',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/api/zdserver_bbs/bbsusergroup/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/zdserver_bbs/bbsusergroup/submit',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/zdserver_bbs/bbsusergroup/submit',
    method: 'post',
    data: row
  })
}

